
#include "GameBase.h"
#include "dertmap.h"

typedef enum GeoType_e {Grass,Water,Mountain,Forest} GeoType;

class CDertTerritory : public GameBase 
{
public:
			CDertTerritory(int x, int y, GeoType Type, int Player );
	virtual ~CDertTerritory();

	// GameBase Operations
	virtual ActionReturn Action(Event action,int inputX, int inputY);
	virtual int Draw(SDL_Surface* pSurface);  
	virtual int Move(int x, int y);
	
	// CDertTerritory 
	virtual void SetPlayer(int Player);
	virtual int GetPlayer() const { return m_PlayerNumber; }
	
private:
	GeoType m_GeoType; 
	int m_PlayerNumber;
	int m_PlayerColorSurfaceNumber;
	int m_GeoSurfaceNumber;
};

class CDertTerritoryDynamic : public GameBase
{
public:	
			CDertTerritoryDynamic(int x, int y, int SurfaceNumber, CDertTerritory* ObjRef );
	virtual ~CDertTerritoryDynamic();

	// GameBase Operations
	virtual ActionReturn Action(Event action,int inputX, int inputY);
	virtual int Draw(SDL_Surface* pSurface);  
	virtual int Move(int x, int y);
	
	// CDertTerritoryDynamic
	virtual CDertTerritory* GetObjRef() const { return m_ObjRef; }

private:
	int m_SurfaceNumber;
	CDertTerritory* m_ObjRef;
};
